public class Solution1603 {

    int a,b,c;

    public Solution1603(int big, int medium, int small) {
        a=big;
        b=medium;
        c=small;
    }

    public boolean addCar(int carType) {
        if (carType==1){
            a--;
            return a>=0;
        }else if (carType==2){
            b--;
            return b>=0;
        }else{
            c--;
            return c>=0;
        }
    }

    public static void main(String[] args) {
        Solution1603 solution1603=new Solution1603(1,1,0);
        System.out.println(solution1603.addCar(1));
        System.out.println(solution1603.addCar(2));
        System.out.println(solution1603.addCar(3));
        System.out.println(solution1603.addCar(1));
    }
}
